//
//  CBCChannelAddCell.m
//  CBCChannelControl
//
//  Created by 李雷川 on 2019/6/30.
//  Copyright © 2019 李雷川. All rights reserved.
//

#import "CBCChannelAddCell.h"
#import "CBCChannelDef.h"
@implementation CBCChannelAddCell
-(instancetype)initWithFrame:(CGRect)frame{
    if(self = [super initWithFrame:frame]){
        [self initUI];
        self.layer.cornerRadius = 12;
        self.layer.masksToBounds = YES;
        self.layer.borderColor = CBCChannelItemColor.CGColor;
        self.layer.borderWidth = 1;
    }
    return self;
}

-(void)initUI{
    [self addSubview:self.titleLabel];
    _titleLabel.frame = self.bounds;

}

-(UILabel *)titleLabel{
    if(_titleLabel == nil){
        _titleLabel = [[UILabel alloc]init];
        _titleLabel.textAlignment = NSTextAlignmentCenter;
        _titleLabel.textColor = CBCChannelItemColor;
    }
    return _titleLabel;
}
@end
